package com.itheima.charstream;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Demo03 {

    public static void main(String[] args) throws IOException {
        FileReader reader = new FileReader("day13\\a.txt");
        //FileReader reader = new FileReader(new File("day13\\a.txt"));
        int ch;
        //reader.read()  读 一个字
        while ((ch = reader.read()) != -1) {
            System.out.println((char)ch);
        }
        reader.close();

    }
}
